package com.zhm.langchain4j.controller;

import com.zhm.base.TestReq;
import com.zhm.langchain4j.controller.req.UploadReq;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/data")
public class TestController {

    @PostMapping(path = "/test")
    public String test(@RequestBody TestReq req){
        return req.getA();
    }


    @PostMapping(path = "/upload")
    public String upload(UploadReq req){
        return req.getA();
    }
}
